package com.seven.multiple.datasource.mapper.detail;

import com.seven.multiple.datasource.model.Cat;
import com.seven.multiple.datasource.vo.CatVO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author QH
 * @date 2019/9/9
 * @description
 */
@Mapper
@Repository
public interface CatMapper {

    @Insert("insert into cat(name, pId) values(#{name}, #{pId})")
    void insert(Cat cat);

    CatVO selectCat(@Param("catId") Integer catId, @Param("dbName") String dbName);
}
